package com.itheima.service.impl;

import com.itheima.dao.InterventionDao;
import com.itheima.pojo.Intervention;
import com.itheima.service.InterventionService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author ZhaoShengChao
 * @create 2021/8/8 21:53
 */
@Service(interfaceClass =InterventionService.class)
@Transactional
public class InterventionServiceImpl implements InterventionService {

    @Autowired
    InterventionDao interventionDao;
    @Override
    public Intervention findAll() {

        Intervention all = interventionDao.findAll();
        System.out.println(all);
        return all;

    }
}
